package cn.nuofankj.myblog.repository;


import cn.nuofankj.myblog.entity.Category;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author xifanxiaxue
 * @date 2020-12-20
 * @desc
 */
@Repository
public interface CategoryRepository extends JpaRepository<Category, Long> {
    
    Category findCategoryById(String id);

    Category findCategoriesByName(String name);
}
